<div class="blade-content ng-scope" id="blade-content">
  <div class="blade-inner">
    <div class="inner-block">
      <form name="form" class="form" (submit)="onCreate()" [formGroup]="formGroup" novalidate>
        <div class="blade-static __bottom" *ngIf="currentBlade.isNew">
          <button class="btn" [disabled]="!formGroup.valid">创建</button>    
        </div>
        <div class="form-group">
          <label class="form-label">值</label>
          <div class="form-input">
            <input name="valueCode" formControlName="valueCode" placeholder="输入值">
          </div>
          <div *ngIf="formErrors.valueCode" class="form-error">
            {{ formErrors.valueCode }}
          </div>
        </div>

        <div class="form-group">
          <label class="form-label">名称</label>
          <div class="form-input">
            <input name="valueDisplay" formControlName="valueDisplay" placeholder="输入名称">
          </div>
          <div *ngIf="formErrors.valueDisplay" class="form-error">
            {{ formErrors.valueDisplay }}
          </div>
        </div>

        <div class="form-group">
          <label class="form-label">排序</label>
          <div class="form-input">
            <input type="number" name="valueSeq" formControlName="valueSeq" placeholder="输入排序">
          </div>
          <div *ngIf="formErrors.valueSeq" class="form-error">
            {{ formErrors.valueSeq }}
          </div>
        </div>

        <!-- <div class="form-group">
          <label class="form-label">默认</label>
          <div class="form-input">
            <input name="valueDefault" formControlName="valueDefault" type="checkbox">
          </div>
        </div> -->

        <div class="form-group">
            <label class="form-label">默认</label>
            <div class="form-input" id="form-input-switch">
               <label class="form-label __switch">
                    <input type="checkbox" name="valueDefault" formControlName="valueDefault" class="ng-pristine ng-untouched ng-valid">
                    <span class="switch"></span>
                </label>
            </div>         
          </div>



      </form>
    </div>
  </div>
</div>